package com.xsf.pay.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 加解密配置
 *
 * @author 18961
 */
@Component
@RefreshScope
@Data
@ConfigurationProperties(prefix = "encryption")
public class EncryptionProperties {
    /**
     * 请求是否加密
     */
    private Boolean requestOpen;
    /**
     * 请求超时时间
     */
    private Long requestTimeout;
    /**
     * 不加密路径
     */
    private List<String> nonKeyPath;
    /**
     * 请求公钥
     */
    private String requestPublicKey;
    /**
     * 私钥
     */
    private String requestPrivateKey;
    /**
     * 响应是否加密
     */
    private Boolean responseOpen;
    /**
     * 响应公钥
     */
    private String responsePublicKey;
    /**
     * 响应私钥
     */
    private String responsePrivateKey;
}
